package org.example.client;

import org.example.config.OpenFeignConfig;
import org.example.factory.TestClientFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@Component
@FeignClient(value = "cloud-users",fallbackFactory = TestClientFactory.class)
public interface TestOpenFeignClient {
    @GetMapping("/test")
    String test();
    @GetMapping("/testOpenFeign")
    String testOpenFeign();
}
